package com.slf.engine.utils;

import org.apache.log4j.Logger;
import org.apache.log4j.Priority;

import com.slf.engine.http.HttpClientManager;

public class ConnectUtil {

	private static final Logger log = Logger.getLogger(ConnectUtil.class);
	
	private static HttpClientManager HTTP_CLIENT_MANAGER = null;
	
	
	public synchronized static HttpClientManager getInStantic()
	{
		if(HTTP_CLIENT_MANAGER == null)
		{
			log.log(Priority.INFO, "服务连接创建成功");
			HTTP_CLIENT_MANAGER = new HttpClientManager();
		}
		return HTTP_CLIENT_MANAGER;
	}
	
			
}
